package com.stock_t.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.stock_t.entity.StockTTransaction;

import java.math.BigDecimal;
import java.util.Date;

public interface StockTTransactionService extends IService<StockTTransaction> {
    /**
     * 查询指定日期和股票编码的做T总收益
     * @param transactionDate 交易日期
     * @param stockCode 股票编码
     * @return 当日做T总收益
     */
    BigDecimal getTotalTProfitByDateAndStock(Date transactionDate, String stockCode);

    BigDecimal getTotalTProfitByStockCode(String stockCode);
}